import request from '@/utils/request'

// 查询救援照片默认配置列表
export function listRescue(query) {
  return request({
    url: '/api/rescueImg/type/list',
    method: 'get',
    params: query
  })
}

export function getDicts(dictType) {
  return request({
    url: "/system/dict/data/type/" + dictType,
    method: "get",
  });
}

// 查询救援照片默认配置详细
export function getRescue(id) {
  return request({
    url: '/api/rescueImg/type/' + id,
    method: 'get'
  })
}
// /api/version/driver/info
export function getDriverVersion() {
  return request({
    url: '/api/version/driver/info',
    method: 'get'
  })
}
export function getDiaoduVersion() {
  return request({
    url: '/api/version/process/info',
    method: 'get'
  })
}
// /api/version/driver/add

// /api/version/driver/add

export function addVersion(data) {
  return request({
    url:'/api/version/driver/add',
    method: 'post',
    data:data
  })
}

// /api/version/process/add
export function addDiaoduVersion(data) {
  return request({
    url:'/api/version/process/add',
    method: 'post',
    data:data
  })
}
///api/rescueImg/type/addByList

export function addByList(data) {
  return request({
    url: '/api/rescueImg/type/addByList',
    method: 'post',
    data:data
  })
}

// 新增救援照片默认配置
export function addRescue(data) {
  return request({
    url: '/api/rescueImg/type',
    method: 'post',
    data: data
  })
}

// 修改救援照片默认配置
export function updateRescue(data) {
  return request({
    url: '/api/rescueImg/type',
    method: 'put',
    data: data
  })
}

// 删除救援照片默认配置
export function delRescue(id) {
  return request({
    url: '/api/rescueImg/type/' + id,
    method: 'delete'
  })
}
